-
Notifications
You must be signed in to change notification settings - Fork 299
feat(pyth-sui-js): Migrate from price-service-client to hermes-client #3120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
// Fetch the latest price feed update VAAs from the price service | ||
const latestVaas = await this.getLatestVaas(priceIds); | ||
return latestVaas.map((vaa) => Buffer.from(vaa, "base64")); | ||
const latestVaas: PriceUpdate = await this.getLatestPriceUpdates(priceIds, { encoding: "base64", parsed: false }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's call this update data instead of Vaas (they are not vaas anymore)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'll approve once you fix the naming issue. And btw, please fix the CI (if your code is fine, sometimes just rerunning it fixes it)
Summary
Migrate to hermes client to get pyth prices.
Rationale
price-service-client and associated endpoints are deprecated.
How has this been tested?